//
//  MessageEntity.m
//  QQplayground
//
//  Created by zhangxy on 2018/7/20.
//  Copyright © 2018年 zhang. All rights reserved.
//

#import "MessageEntity.h"

@implementation MessageEntity

- (instancetype)initWithDictionary:(NSDictionary *)dictionary
{
    self = [super init];
    if (self) {
        self = [MessageEntity yy_modelWithDictionary:dictionary];
        _user_info = [[User alloc] initWithDictionary:dictionary[@"to_user_info"]];
    }
    return self;
}


+ (NSDictionary<NSString *,id> *)modelCustomPropertyMapper
{
    return @{
             @"type" : @"type",
             @"title" : @"title",
             @"count":@"count",
             @"message":@"message",
             @"message_id":@"message_id",
             @"message_detail":@"message_detail",
             @"is_read":@"is_read",
             @"add_time":@"add_time"
             };
}

@end
